import service from '@/utils/request'

const BusinessDepartApi = {
  addBusinessDepart: function(data) {
    return service.post('businessDepart', data)
  },
  editBusinessDepart(data) {
    return service.put('businessDepart', data)
  },
  deleteBusinessDepart(data) {
    return service.put('businessDepart/delete',data)
  },
  listBusinessDeparts(data) {
    return service.get('businessDepart/tree', {params: data })
  },
  getBusinessDepartInfo(data) {
    return service.get('businessDepart', {params: data })
  },
  listMangerTree(data){
    return service.get("businessDepart/idNameTree",{params:data})
  },
  setDepartBinding(data){
    return service.post("managerDepart/setDepartBinding",data)
  }
}
export default BusinessDepartApi
